home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
pdcurs21
/
private
/
_scrclos.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-06-18
|
2KB
|
56 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#ifdef PDCDEBUG
char *rcsid__scrclos = "$Header: C:\CURSES\private\RCS\_scrclos.c 2.1 1993/06/18 20:23:38 MH Rel MH $";
#endif
/*man-start*********************************************************************
PDC_scr_close() - Internal low-level binding to close the physical screen
PDCurses Description:
This function provides a low-level binding for the Flexos
platform which must close the screen before writing to it.
This is a nop for the DOS platform.
This function is provided in order to reset the FlexOS 16 bit
character set for input rather than the limited input
character set associated with the VT52.
PDCurses Return Value:
This function returns OK on success, otherwise an ERR is returned.
PDCurses Errors:
The DOS platform will never fail. The Flexos platform may fail
depending on the ability to close the current virtual console in
8 (as opposed to 16) bit mode.
Portability:
PDCurses int PDC_scr_close( void );
**man-end**********************************************************************/
int PDC_scr_close(void)
{
#ifdef PDCDEBUG
if (trace_on) PDC_debug("PDC_scr_close() - called\n");
#endif
#ifdef FLEXOS
_flexos_8bitmode();
vir.vc_kbmode = kbmode;
vir.vc_smode = smode;
vir.vc_mode = cmode;
retcode = s_set(T_VIRCON, 1L, (char *) &vir, (long) sizeof(vir));
if (retcode < 0L)
return( ERR );
return( OK );
#endif
return( OK );
}